#ifndef __MYSTDIO_H__
#define __MYSTDIO_H__
#include<string.h>

//处理缓冲区
#define FLUSH_NOW 1
#define FLUSH_LINE 2
#define FLUSH_ALL 4
#define SIZE 1024
typedef struct _FILE{
    int fileno;
    int flag;
    //输入缓冲区
    //char *in_buffer[SIZE];
    //int in_pos;
    //输出缓冲区
    char out_buffer[SIZE];
    int out_pos;

}_FILE;

_FILE*_fopen(const char*filename,const char*flag);
int _fwrite(_FILE* fd,const char *s,int len);
void _fclose(_FILE* fd);











//条件编译--->防止头文件被重复包含
#endif
